GetExpirePeriodDuration

SoftwareShield ClientProtector COM Component > ClientProtector (SSCProtector) Reference > GetExpirePeriodDuration

## GetExpirePeriodDuration

The GetExpirePeriodDuration function retrieves the total length of the expire period (if any) of an expiring license. The function will return the total length of any expire period regardless of if the license is actually expired or not. Note that this only considers if the license has a period expire date and ignores hard expire dates.

###### Syntax

HRESULT GetExpirePeriodDuration ( long * PeriodDuration, long * return_code ) ;

###### Parameters

PeriodDuration

[OUT] This is (a pointer to) a numeric value which returns holding the total length of any expire period in the license.

return_code

[OUT] This is (a pointer to) a numeric value that returns with a RETURNCODE that identifies the outcome of the operation.

###### Remarks

The GetExpirePeriodDuration function retrieves the total length of any expire period in the license. Regardless of if the license is expired or how much time has been consumed of an expire period, the PeriodDuration parameter will return with the total length of the expire period. Note that this only considers if the license has a period expire date and ignores hard expire dates.

If the license is not an expiring type license or has no period expire date, then PeriodDuration will return holding 0 and the return_code parameter will return holding TRUE_NON_EXPIRY. If there is an expire period, the return_code parameter will return holding TRUE_EXPIRY.

###### Return Value

As with all COM function calls they return an HRESULT. HRESULT is a data type that is a 32-bit error or warning code. Check your compilers documentation for information on interpreting the HRESULT value.

###### Function Information

Exposed By Interface: | "ISSCProtector"
Exposed In COM Server Binaries: | "SSCProt.dll" and "SSCProtD.dll"